import React, { Component } from 'react';
import { 
    View,
    Text,
    StyleSheet,
    Dimensions,
    Image,
    TouchableOpacity,
    StatusBar
 } from 'react-native';
 import {Theme, NavigationPage,TeaNavigator, ListRow, NavigationBar, Label, Toast} from 'teaset';
import BasePage from '../BasePage'
import PageView from '../Component/Common/PageView'
import GateWayPage from './GateWay'
 export default class ManagePage extends BasePage{
    renderNavigationBar() {
        return (
            <NavigationBar
                title={'灯管理系统'}
                rightView={<TouchableOpacity
                    onPress={()=>{
                        this.navigator.push({view:<GateWayPage/>});
                    }}
                >
                    <Image style={{width:32,height:32}} source={require('../images/add.png')}></Image>
                </TouchableOpacity>}
                backgroundColor='#4195D5'
                leftView={ <NavigationBar.BackButton  onPress={() => this.navigator.pop()} />}
            />
        );
    }
     renderPage(){
         return(
            <View style={{flex:1, backgroundColor:'#f2f2f2' ,alignItems:'center',justifyContent:'center',}}>
                <Text style={{ color:'black', width:200, height:40,textAlign:'center',fontSize:18}}>请添加设备</Text>
            </View>
         );
     }
 }